package com.ruoyi.manger.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公共资源文档下载对象 t_resource_document
 * 
 * @author ssh
 * @date 2024-12-15
 */
public class ResourceDocument extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 主键ID */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String caption;

    /** 文章下载地址 */
    @Excel(name = "文章下载地址")
    private String downloadUrl;

    /** 上传人 */
    @Excel(name = "上传人")
    private String createUserId;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 数据状态（作为逻辑删除，0为正常-1为删除） */
    @Excel(name = "数据状态", readConverterExp = "作=为逻辑删除，0为正常-1为删除")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCaption(String caption) 
    {
        this.caption = caption;
    }

    public String getCaption() 
    {
        return caption;
    }
    public void setDownloadUrl(String downloadUrl) 
    {
        this.downloadUrl = downloadUrl;
    }

    public String getDownloadUrl() 
    {
        return downloadUrl;
    }
    public void setCreateUserId(String createUserId) 
    {
        this.createUserId = createUserId;
    }

    public String getCreateUserId() 
    {
        return createUserId;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("caption", getCaption())
            .append("downloadUrl", getDownloadUrl())
            .append("createUserId", getCreateUserId())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
